
const data = [
    {
        id: 'wqeqwe',
        name: 'Audi',
        price: '$100'
    }, {
        id: 'sadgef',
        name: 'Bmw',
        price: '$300'
    }, {
        id: 'gegsrgrgd',
        name: 'Benz',
        price: '$200'
    }
];

export const getPlayer = id => {
    for(var i = 0, len = data.length; i < len; i++) {
        if(data[i].id === id) {
            return data[i]
        }
    }

    return null;
};

export default data;